package com.ruoyi.vote.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 结果选项对象 result_option
 *
 * @author ruoyi
 * @date 2022-10-05
 */
public class ResultOption extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 结果id
     */
    private Long resultId;

    /**
     * 选项id
     */
    private Long optionId;

    private Options option;

    public Options getOption() {
        return option;
    }

    public void setOption(Options option) {
        this.option = option;
    }

    public void setResultId(Long resultId) {
        this.resultId = resultId;
    }

    public Long getResultId() {
        return resultId;
    }

    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }

    public Long getOptionId() {
        return optionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("resultId", getResultId())
                .append("optionId", getOptionId())
                .toString();
    }
}
